const express = require('express');
const app = express();

app.get('/hello',(req,res)=>{
    res.end('hello boy!')
})

app.listen(3000,err=>{
    if(!err){
        console.log('服务器启动成功！')
    }else{
        console.log(err);
    }
})